﻿@model IEnumerable<CmsMedia>
@{
    ResFile = "cms_Media";
}

<h3>@_("File upload")</h3>
<div id="js-mediapicker-content" class="b-form b-mediapicker__uploadfile-wrap">
    <span class="b-mediapicker__selectfile">@_("Select file")</span> @Html.Telerik().Upload().Name("js-mediapicker-file-uploader").Multiple(false).Async(async => async.AutoUpload(true).Save("UploadFile","CmsMediaContent")).ClientEvents(events => events.OnSuccess("onMediapickerFileUploadSuccess").OnUpload("onMediapickerFileUploaded"))
    
    <div>
        <span class="b-mediapicker__selectfolder">@_("Select folder")</span>
        @Html.DropDownList("js-mediapicker-folders", new SelectList(Model, "Id", "FolderName"), new {@class="DropDownList" })
        <br />
        <button disabled="disabled" id="js-mediapicker-upload-btn" class="b-button b-button_small b-mediapicker__uploadfile-b" data-element-id="@ViewBag.ElementId" data-content-title="" data-media-file-id="0">@_("Upload file to selected folder")</button>
    </div>
</div>